package org.samoji.business;

import java.util.ArrayList;
import java.util.List;

public class Course {
	private String _name;
	private String _description;
	
	private List<Professor> _professors = new ArrayList<Professor>();
	
	private List<Student> _students = new ArrayList<Student>();
	
	public Course() {;}

	public Course(String _name, String _description, List<Professor> _professors, List<Student> _students) {
		super();
		this._name = _name;
		this._description = _description;
		this._professors = _professors;
		this._students = _students;
	}

	public boolean addProfessor(Professor p) {
		return this._professors.add(p);
	}
	
	public boolean addStudent(Student s) {
		return this._students.add(s);
	}
	
	/**
	 * @return the _name
	 */
	public String get_name() {
		return _name;
	}

	/**
	 * @param _name the _name to set
	 */
	public void set_name(String _name) {
		this._name = _name;
	}

	/**
	 * @return the _description
	 */
	public String get_description() {
		return _description;
	}

	/**
	 * @param _description the _description to set
	 */
	public void set_description(String _description) {
		this._description = _description;
	}

	/**
	 * @return the _professors
	 */
	public List<Professor> get_professors() {
		return _professors;
	}

	/**
	 * @param _professors the _professors to set
	 */
	public void set_professors(List<Professor> _professors) {
		this._professors = _professors;
	}

	/**
	 * @return the _students
	 */
	public List<Student> get_students() {
		return _students;
	}

	/**
	 * @param _students the _students to set
	 */
	public void set_students(List<Student> _students) {
		this._students = _students;
	}
}